package org.biubiu0002.baiblog.core.service;

import com.baomidou.mybatisplus.extension.service.IService;
import org.biubiu0002.baiblog.common.utils.PageUtils;
import org.biubiu0002.baiblog.core.model.entity.LikeRecordEntity;

import java.util.Map;

/**
 * 点赞记录表
 *
 * @author biubiu0002
 * @email 1007918011@qq.com
 * @date 2022-05-06 00:50:37
 */
public interface LikeRecordService extends IService<LikeRecordEntity> {

    PageUtils queryPage(Map<String, Object> params);

    /**
     * 从redis将点赞记录同步到db
     */
    void syncShareLikeMapFromRedis2DB();

    /**
     * 判断用户是否点赞分享
     * @param userUid 用户uid
     * @param shareId 分享id
     * @return true/false
     */
    Boolean isUserLikeShare(String userUid, String shareId);
}

